package com.javaee.mapper.admin;

import com.javaee.entity.Department;
import com.javaee.entity.Doctor;
import com.javaee.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {

    int addUser(User user);

    List<User> selectAllUsersByPage(@Param("startIndex") int startIndex, @Param("perPageSize") int perPageSize);
    int selectCount();

    User selectAUser(int id);

    int deleteUser(int id);

    int updateUser(User user);

}
